//jshint ignore:start
import DBTable from "./DBTable.js";
export default class DBTransaction {
	constructor(connect, flag) {
		this.transaction = connect.transaction(connect.objectStoreNames, flag); //新建事务
	}
	getTable(name) {
		return new DBTable(this.transaction, name); //获取数据表对象
	}
}
